﻿@using LastoRevival.Service.Models;

@{
	ViewBag.Title = "Confirm user deletion";

	this.AddIndexBreadCrumb();
	this.AddUserBreadCrumb((string)ViewBag.Username);
	this.AddCurrentBreadCrumb("Delete");
	
}

<script type="text/javascript">

	function backToUser()
	{
		window.location.href = "@Url.Action("ViewUser", "User", new { username = ViewBag.Username })";
	}

</script>

<h2 style="line-height: 1.4em;">
	Are you sure you want to delete user '@ViewBag.Username'? <br />
	All messages posted by this user will be deleted. <br />
	This action cannot be undone.
</h2>
<br />
<br />
<form action="@Url.Action("DeleteUser", "Admin")" method="post">
	<input type="hidden" name="username" value="@ViewBag.Username" />
	<button type="submit">Yes, delete this user</button>
	<button type="button" onclick="backToUser();">No, get me out of here</button>

</form>